package com.xcc.annotation.ext.core;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class Demo4_ApplicationEvent implements ApplicationListener {
    //监听所有ApplicationEvent以及其子类发布的事件
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("ApplicaitonEvent ====> " + event);
    }
}
